//
//  KDPicsCell.m
//  WangJingApp
//
//  Created by 魏强 on 17/2/7.
//  Copyright © 2017年 KDTech. All rights reserved.
//

#import "KDPicsCell.h"

@implementation KDPicsCell
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        CGFloat photoSize = ([UIScreen mainScreen].bounds.size.width - 60) / 3;
        CGFloat photoW = photoSize - 20;
        _photo = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, photoW, photoW)];
        
        _photo.layer.masksToBounds = YES;
        
        _photo.contentMode = UIViewContentModeScaleAspectFill;
        
        [self.contentView addSubview:_photo];
    }
    return self;
}
@end
